package demo1.config.controller;

import demo1.config.model.Student1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Author quan
 * @Description 读取yml配置文件的集合形式
 * @Date 2023/7/19 18:48
 */
@Component
public class Demo4_ReadYmlList {
    @Autowired
    private Student1 student1;
    @PostConstruct
    public void postConstruct(){
        System.out.println(student1);
    }
}
